//
//  ShareModel.m
//  wtshoppingcite
//
//  Created by TW on 14-10-21.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "ShareModel.h"

@implementation ShareModel

- (id)initWithShareInfo:(NSDictionary *)info{
    if(self = [super init]){
        id commentNumber = [info objectForKey:@"commentNumber"];
        self.commentNumber = ObjToString(commentNumber);
        
        id content = [info objectForKey:@"content"];
        self.content = ObjToString(content);
        
        id nickName = [info objectForKey:@"nickName"];
        self.nickName = ObjToString(nickName);
        
        id deleted = [info objectForKey:@"deleted"];
        self.deleted = ObjToString(deleted);
        
        id createTime = [info objectForKey:@"createTime"];
        self.createTime = ObjToString(createTime);
        
        id bid = [info objectForKey:@"id"];
        self.bid = ObjToString(bid);
        
        
        id imgPath = [info objectForKey:@"userIcon"];
        self.imgPath = ObjToString(imgPath);

        id praiseNumber = [info objectForKey:@"praiseNumber"];
        self.praiseNumber = ObjToString(praiseNumber);
        
        id smallImgPath = [info objectForKey:@"smallImgPath"];
        self.smallImgPath = ObjToString(smallImgPath);
        
        id type = [info objectForKey:@"type"];
        self.type = ObjToString(type);
    }
    return self;
}

@end
